package cc.ichoice2.web.common.util;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;


public class Dom4Util {
	/**
	 * 读取XML格式内容
	 * @param xml
	 * @return
	 */
	public static Document readDocument(String xml){
		try {
			return DocumentHelper.parseText(xml);
		} catch (DocumentException e) {
			e.printStackTrace();
		}
		return null;
	}

}
